import request from '@/utils/request'

// 查询报修进度日志列表
export function listLogRepair(query) {
  return request({
    url: '/repair/logRepair/list',
    method: 'get',
    params: query
  })
}

// 查询报修进度日志详细
export function getLogRepair(logId) {
  return request({
    url: '/repair/logRepair/' + logId,
    method: 'get'
  })
}

// 新增报修进度日志
export function addLogRepair(data) {
  return request({
    url: '/repair/logRepair',
    method: 'post',
    data: data
  })
}

// 修改报修进度日志
export function updateLogRepair(data) {
  return request({
    url: '/repair/logRepair',
    method: 'put',
    data: data
  })
}

// 删除报修进度日志
export function delLogRepair(logId) {
  return request({
    url: '/repair/logRepair/' + logId,
    method: 'delete'
  })
}
